//
//  LiveApplyTalkView.m
//  Doumi
//
//  Created by admin on 2021/4/20.
//

#import "LiveApplyTalkView.h"
#import <Masonry/Masonry.h>
@implementation LiveApplyTalkView

-(instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        [self initView];
        
    }
    
    return self;
}
-(void)initView{
    
    [self addSubview:self.headImageView];
    [self addSubview:self.nameLable];
    
    [self.headImageView mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.width.mas_equalTo(45);
        make.height.mas_equalTo(45);
        make.centerY.mas_equalTo(self.mas_centerY);
        make.left.mas_equalTo(self.mas_left).offset(15);
        
    }];
    
    [self.nameLable mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.mas_equalTo(self.headImageView.mas_top).offset(6);
        make.width.mas_equalTo(90);
        make.left.mas_equalTo(self.headImageView.mas_right).offset(8);
        
    }];
}
#pragma mark 懒加载
-(UIImageView *)headImageView{
    
    if (_headImageView == nil) {
        
        _headImageView = [[UIImageView alloc]init];
        _headImageView.layer.cornerRadius = 22.5;
        _headImageView.clipsToBounds = YES;;

    }
    
    return _headImageView;
}

-(UILabel *)nameLable{
    
    if (_nameLable == nil) {
        
        _nameLable = [[UILabel alloc]init];
        _nameLable.numberOfLines = 2;
        _nameLable.textColor = [UIColor colorWithRed:44/255.0 green:158/255.0 blue:255/255.0 alpha:1.0];
        _nameLable.font = [UIFont systemFontOfSize:13];
        
    }
    
    return _nameLable;
}



@end
